package com.rd.service;

import com.rd.common.CommonResult;
import com.rd.common.vo.UpdateAvatarFormData;
import com.rd.common.vo.UpdatePwdFormData;
import com.rd.pojo.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 20586
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-10-12 09:25:37
*/
public interface SysUserService extends IService<SysUser> {

    /*根据用户名获取用户详细信息*/
    SysUser getUserByName(String username);

    /*获取当前用户的权限信息*/
    String getAuthorityInfo(Long userId);

    /*修改最后登录时间*/
    void updateLastLoginTime(String username);

    /*查询所有用户信息*/
    CommonResult userList();

    int updateBaseInfo(SysUser sysUser);

    int updatePwd(UpdatePwdFormData pwdForm);

    int updateAvatar(UpdateAvatarFormData avatarForm);

}
